﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="DreamProject_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table width="350px" cellpadding='0' cellspacing='0' border='0' class='moduleTitle'>
        <tr>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td valign='top'>
            </td>
            <td width='100%' align="left">
                <h2>
                      ADD Category</h2>
            </td>
            <td valign='top' align='right'  style='padding-top: 3px; padding-left: 5px;'>
                <div id="status">
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="height: 14px">
                &nbsp;</td>
        </tr>
    </table>
    <table width="350px">
        <tr>
            <td align="left">
                <asp:ImageButton ID="btnback" runat="server" ImageUrl="Images/btn_back.gif" onmouseout="this.src='Images/btn_back.gif';"
                    onmouseover="this.src='Images/btn_back_02.gif';" ValidationGroup="Two"   />
            </td>
        </tr>
   </table>
    <table border="0" cellpadding="0" cellspacing="0" width="350px">
        <tr>
            <td colspan="4" style="height: 14px">
                <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="4" style="height: 14px">
            </td>
        </tr>
        <tr>
            <td width="13" style="height: 12px">
                <img name="table_r1_c1" src="images/table_r1_c1.gif" width="13" height="12" border="0"
                    alt=""></td>
            <td width="339" background="images/table_r1_c2.gif" style="height: 12px">
                <img name="table_r1_c2" src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
            <td width="13" style="height: 12px">
                <img name="table_r1_c3" src="images/table_r1_c3.gif" width="13" height="12" border="0"
                    alt=""></td>
            <td width="11" style="height: 12px">
                <img src="images/spacer.gif" width="1" height="12" border="0" alt=""></td>
        </tr>
        <tr>
            <td background="images/table_r2_c1.gif" style="height: 167px">
                <img name="table_r2_c1" src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
            <td style="height: 167px">
                <asp:Panel ID="panlocation" runat="server" DefaultButton="btnsave">
                    <table width="350" border="0" cellpadding="0" cellspacing="0">
                       
                        <tr>
                            <td colspan="2" align="left" valign="top">
                                <asp:Label ID="lblCategoryName" runat="server" ></asp:Label>
                                </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="txtCategoryName" MaxLength="150" runat="server" TextMode="MultiLine" Height="62px" Width="233px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="validatorCategoryName" runat="server" ValidationGroup="One"
                                    ControlToValidate="txtCategoryName" ErrorMessage="Enter Category Name" Display="None"
                                    SetFocusOnError="true"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator runat="server" ID="rev_CategoryName" ValidationExpression="[A-Za-z0-9,.&\s]*"
                                    ErrorMessage="special character not allowed in category name" ValidationGroup="One" ControlToValidate="txtCategoryName"
                                    Display="None"></asp:RegularExpressionValidator>
                            </td>
                           
                        </tr>
                         
                       
                        
                        <tr>
                            <td colspan="2" align="left">
                                <asp:Label ID="lblStatus" runat="server"></asp:Label></td>
                            <td colspan="2" align="left">
                                <asp:CheckBox ID="chkstatus" runat="server" />
                            </td>
                            
                        </tr>
                        <tr>
                            <td align="right" colspan="4">
                                <asp:ImageButton ID="btnsave" runat="server" ImageUrl="Images/btn_save.gif" onmouseout="this.src='Images/btn_save.gif';"
                                    onmouseover="this.src='Images/btn_save_02.gif';" ValidationGroup="One"  />
                                <img id="imgCategory" runat="server" src="Images/btn_clear.gif" onmouseout="this.src='Images/btn_clear.gif';"
                                    onmouseover="this.src='Images/btn_clear_02.gif';" />
                            </td>
                            <td>
                            </td>
                            
                        </tr>
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="One"
                            ShowMessageBox="true" ShowSummary="false" DisplayMode="BulletList" HeaderText="Please review the Following error" />
                    </table>
                </asp:Panel>
            </td>
            <td background="images/table_r2_c3.gif" style="height: 167px">
                <img name="table_r2_c3" src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
            <td style="height: 167px">
                <img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
        </tr>
        <tr>
            <td style="height: 16px">
                <img name="table_r3_c1" src="images/table_r3_c1.gif" width="13" height="16" border="0"
                    alt=""></td>
            <td background="images/table_r3_c2.gif" style="height: 16px">
                <img name="table_r3_c2" src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
            <td style="height: 16px">
                <img name="table_r3_c3" src="images/table_r3_c3.gif" width="13" height="16" border="0"
                    alt=""></td>
            <td style="height: 16px">
                <img src="images/spacer.gif" width="1" height="16" border="0" alt=""></td>
        </tr>
    </table>
    <span id="notice">Fields marked with an asterisk <span class="error">*</span> are required.</span>
    
    </div>
    </form>
</body>
</html>
